//
//  SinaStatusModel.swift
//  weibo
//
//  Created by liuchao on 16/1/24.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class SinaStatusModel: NSObject {

    /// created_at	string	微博创建时间
    var created_at: String?
    ///id	int64	微博ID
    var id: Int = 0
    ///text	string	微博信息内容
    var text: String?
    ///source	string	微博来源
    var source: String?
    // 用户信息
    var user: SinaUserModel?
    
    init(dict:[String:AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
        
        if let userDic=dict["user"] as? [String:AnyObject]{
        
           user=SinaUserModel(dict: userDic)
            
            
            
        }
        
    }
    
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
}
